Skip to content

Add copayers to tss txps#4146

Open
kajoseph wants to merge 2 commits intobitpay:masterfrom
kajoseph:addCopayersToTssTxps
Open

Add copayers to tss txps#4146
kajoseph wants to merge 2 commits intobitpay:masterfrom
kajoseph:addCopayersToTssTxps

Conversation

@kajoseph
Copy link
Copy Markdown
Collaborator

@kajoseph kajoseph commented Apr 17, 2026

Description

Accepted/broadcasted tx proposals for TSS wallets currently only have 1 copayer. This PR adds the other TSS participants as copayers to the txp so the client can see who participated in the TSS signing session.

Changelog

  • On pushing the signature to the server, gets TSS signing session and attaches other participants as copayers to the txp.
  • Easier local https with a CA

Testing Notes

You should be able to sign a txp with a TSS wallet as usual and the txp should have all signers listed in the copayers array


Checklist

  • I have read CONTRIBUTING.md and verified that this PR follows the guidelines and requirements outlined in it.

@kajoseph kajoseph requested a review from gabrielbazan7 April 17, 2026 22:28
// so the client can see who participated in the signing.
const addrDbString = Utils.getAddressNetworkForDbLookup(txp.from || txp.inputs[0]?.address, wallet.network);
const address = await util.promisify(storage.fetchAddressByWalletId).call(storage, wallet.id, addrDbString);
const tssSigSeshId = `${txp.id}:${address.path.replace(/\//g, '-')}`;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm generating the session ID on the client like this:
${txp.id}:${derivationPath.replace(/\//g, '-')}-input${i}
Because of that, the fetch always returns null.

Could you update it to:
const tssSigSeshId = `${txp.id}:${address.path.replace(/\//g, '-')}-input1`;

Using -input1 is enough here, I tested it and it works correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants